Telegram Group & Telegram Channel
Python dasturlash maktabi
⭕️ 3-bo'lim "Nazorat tarkibi" ————————————— Ⓜ️ "if" va "elif" operatorlari Biror shart bajarish uchun if operatorlaridan foydalanishingiz mumkin va shart operatori deyarli barcha dasturlarda ishtirok etadi. Shart operatori 3 qismdan iborat (if, elif, else).…
Ⓜ️ To'plam.

To'plam - takrorlanmaydigan va tartiblanmagan ma'lumotlar saqlaydigan ma'lumot turi.

To'plamdan takrorlanmaydigan ma'lumotlarni saqlash uchun foydalaniladi.

toplam = {'pythonuz', 'pythonuz', 1, 2, 1, 1}
print(toplam)
{'pythonuz', 2, 1}


Jingalak qavs yoki set() funksiyasi yordamida to'plamni tuzish mumkin.

literal = {'pythonuz', 'phpuz', 'mqluz'}
print(literal)
{'phpuz', 'pythonuz', 'mqluz'}


Bo'sh bo'lmagan to'plamni set funksiyasi yordamida tuzish tavsiya etilmaydi.
set_funksiyasi = set([1, 2, 3, 4, 'a', 'b'])
print(set_funksiyasi)
{1, 2, 3, 4, 'b', 'a'}

Warning: Function call can be replaced with set literal

Lu'gat va to'plam jingalak qavslar ichida joylashadi. Bo'sh to'plamni lug'atdan farqlash uchun set() funksiyasi yordamida tuzish tavsiya etiladi.
none = set()
print(none)
set()


To'plamda ro'yxat, to'plam yoki lug'at kabi o'zgaruvchan elementlar bo'lishi mumkin emas.

@pythonuz



tg-me.com/pythonuz/482
Create:
Last Update:

Ⓜ️ To'plam.

To'plam - takrorlanmaydigan va tartiblanmagan ma'lumotlar saqlaydigan ma'lumot turi.

To'plamdan takrorlanmaydigan ma'lumotlarni saqlash uchun foydalaniladi.

toplam = {'pythonuz', 'pythonuz', 1, 2, 1, 1}
print(toplam)
{'pythonuz', 2, 1}


Jingalak qavs yoki set() funksiyasi yordamida to'plamni tuzish mumkin.

literal = {'pythonuz', 'phpuz', 'mqluz'}
print(literal)
{'phpuz', 'pythonuz', 'mqluz'}


Bo'sh bo'lmagan to'plamni set funksiyasi yordamida tuzish tavsiya etilmaydi.
set_funksiyasi = set([1, 2, 3, 4, 'a', 'b'])
print(set_funksiyasi)
{1, 2, 3, 4, 'b', 'a'}

Warning: Function call can be replaced with set literal

Lu'gat va to'plam jingalak qavslar ichida joylashadi. Bo'sh to'plamni lug'atdan farqlash uchun set() funksiyasi yordamida tuzish tavsiya etiladi.
none = set()
print(none)
set()


To'plamda ro'yxat, to'plam yoki lug'at kabi o'zgaruvchan elementlar bo'lishi mumkin emas.

@pythonuz

BY Python dasturlash maktabi


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/pythonuz/482

View MORE
Open in Telegram


Python dasturlash maktabi Telegram | DID YOU KNOW?

Date: |

Importantly, that investor viewpoint is not new. It cycles in when conditions are right (and vice versa). It also brings the ineffective warnings of an overpriced market with it.Looking toward a good 2022 stock market, there is no apparent reason to expect these issues to change.

Telegram auto-delete message, expiring invites, and more

elegram is updating its messaging app with options for auto-deleting messages, expiring invite links, and new unlimited groups, the company shared in a blog post. Much like Signal, Telegram received a burst of new users in the confusion over WhatsApp’s privacy policy and now the company is adopting features that were already part of its competitors’ apps, features which offer more security and privacy. Auto-deleting messages were already possible in Telegram’s encrypted Secret Chats, but this new update for iOS and Android adds the option to make messages disappear in any kind of chat. Auto-delete can be enabled inside of chats, and set to delete either 24 hours or seven days after messages are sent. Auto-delete won’t remove every message though; if a message was sent before the feature was turned on, it’ll stick around. Telegram’s competitors have had similar features: WhatsApp introduced a feature in 2020 and Signal has had disappearing messages since at least 2016.

Python dasturlash maktabi from jp


Telegram Python dasturlash maktabi
FROM USA